import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'     //根组件

console.log("项目的总入口文件");

const app = createApp(App)  // 创建一个应用实例 第一个参数是根组件

import router from './router'
import "./styles/index.scss"

// 引入注册vant
import Vant from 'vant'
app.use(Vant)
import 'vant/lib/index.css'

// 注册全局组件
import Dao from './components/Dao.vue'
app.component('Dao',Dao)    // 注册组件
import Foot from './components/Foot.vue'
app.component('MyFoot',Foot)
import MyHead from './components/MyHead.vue'
app.component('MyHead',MyHead)

app.use(router) // 挂载路由

app.mount('#app')  //载入到 div#app
